<?php
$con = mysql_connect("localhost","root","root");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("miniflyer", $con);
$dateTime = date("Y-m-d",strtotime("-1 day"));

mysql_query("INSERT INTO miniflyer SELECT NULL,
  SceneAvatar,
  SceneBank,
  SceneCredits,
  SceneExcess,
  SceneGameOver,
  SceneItems,
  SceneMainGame,
  SceneMainMenu,
  SceneOption,
  SceneProfile,
  SceneStash,
  SceneUpgrades,
  dayGetMoney,
  dayPlayAvgTime,
  dayPlayLongTime,
  dayPlayNowTime,
  dayPlayShortTime,
  dayPlayTime,
  dayTotalTime,
  dayUsedMoney,
  firstlogindata,
  firstlogin,
  jailbreak,
  lastUi,
  nowMoney,
  totalMoney,
  totalTime,
  dayEffortA,
  dayEffortB,
  dayEffortC,
  buyAvatarC1,
  buyAvatarC2,
  buyAvatarC3,
  buyAvatarC4,
  buyAvatarC5,
  buyAvatarC6,
  equipUpInfosB1,
  equipUpInfosB2,
  equipUpInfosB3,
  equipUpInfosB4,
  equipUpInfosB5,
  equipUpInfosB6,
  equipUpInfosB7,
  equipUsedInfosA1,
  equipUsedInfosA2,
  equipUsedInfosA3,
  equipUsedInfosA4,
  equipUsedInfosA5,
  _099Time,
  _1999Time,
  _199Time,
  _299Time,
  _499Time,
  _999Time,
  Total,
  _099Total,
  _1999Total,
  _199Total,
  _299Total,
  _499Total,
  _999Total,
  deviceid,
  gamename,
  createdate,
  date,
  dataTime,coinDoubleIAP  FROM  miniflyer_query_temp");

mysql_close($con);
?>